
fn int_hash(vlocation: &i32) -> u32 {
    // Step 1: Dereference the reference to retrieve the integer value.
    let value = *vlocation;

    // Step 2: Convert the integer value to an unsigned int (u32 in Rust).
    let hash_code = value as u32;

    // Step 3: Return the unsigned int value as the hash code.
    hash_code
}

fn main() {
    // Example usage of the int_hash function.
    let my_int = 123;
    let hash = int_hash(&my_int);
    println!("The hash of {} is {}", my_int, hash);
}

